ThinkPHP5


think\console\output\descriptor\Console
library\think\console\output\descriptor\Console.php at line 17

Class Console

Console

public class Console


Constant Summary
final static str

GLOBAL_NAMESPACE

Constructor Summary
void

__construct(ThinkConsole console, string|null namespace)

构造方法

Method Summary
array

getNamespaces()

Command[]

getCommands()

Command

getCommand(string name)

Constant Detail

library\think\console\output\descriptor\Console.php at line 20

GLOBAL_NAMESPACE

public final static str GLOBAL_NAMESPACE = '_global'

Constructor Detail

library\think\console\output\descriptor\Console.php at line 52

__construct

public void __construct(ThinkConsole console, string|null namespace)

构造方法


Method Detail

library\think\console\output\descriptor\Console.php at line 61

getNamespaces

public array getNamespaces()


library\think\console\output\descriptor\Console.php at line 73

getCommands

public Command[] getCommands()


library\think\console\output\descriptor\Console.php at line 87

getCommand

public Command getCommand(string name)

Throws:
\InvalidArgumentException

ThinkPHP5